window.onload = function() {
	var nd = document.getElementById("netdisk");
	var pd = document.getElementById("pd");

	function togglesub() {
		var sub = document.getElementById("sub");
		var classname = sub.getAttribute("class");
		//							alert(classname);
		var arr = classname.split(" ");
		for (var i = 0; i < arr.length; i++) {
			//								alert(arr[i]);
			if (arr[i] == 'hide') arr[i] = "show";
			else if (arr[i] == 'show') arr[i] = "hide";
		}
		sub.setAttribute("class", arr.join(" "));
		var s = document.getElementById("sp");
		var classname = s.getAttribute("class");
		//alert(classname);
		if (classname == "up") s.setAttribute("class", "down");
		else if (classname == "down") s.setAttribute("class", "up");
		var bg = document.getElementById("diskbg");
		var classname = bg.getAttribute("class");
		var arr = classname.split(" ");
		for (var i = 0; i < arr.length; i++) {
			if (arr[i] == 'diskbgtwo') arr[i] = "diskbgone";
			else if (arr[i] == 'diskbgone') arr[i] = "diskbgtwo";
		}
		bg.setAttribute("class", arr.join(" "));
	}

	function togglepd() {
		var up = document.getElementById("userpull");
		var classname = up.getAttribute("class");
		if (classname == 'hide') up.setAttribute("class", "show");
		else if (classname == 'show') up.setAttribute("class", "hide");
		var sj=document.getElementById("sanjiao");
		var classname=sj.getAttribute("class");
		var arr=classname.split(" ");
		for (var i=0;i<arr.length;i++) {
			if(arr[i]=='hide') arr[i]="show";
			else if(arr[i]=='show') arr[i]="hide";
		}
		sj.setAttribute("class",arr.join(" "));
	}
	pd.onmouseover = function() {
		togglepd();
	};
	pd.onmouseout = function() {
		togglepd();
	};
	nd.onmouseover = function() {
		togglesub();
	};
	nd.onmouseout = function() {
		togglesub();
	};
};